from flask_script import Manager
from flask_migrate import MigrateCommand
from app import create_app
import os

app = create_app(os.getenv("FLASK_CONFIG","default"))
manager = Manager(app)
manager.add_command("db",MigrateCommand)


if __name__ == "__main__":

    manager.run()